/*
 * =====================================================================================
 * Copyright (C) 2023 Ingenic Semiconductor Co.,Ltd
 * All Rights Reserved
 *
 * Filename     : reg_pdma.h
 * Author       : Keven <keven.ywhan@ingenic.com>
 * Created      : 2024/06/05 11:15
 * Description  :
 *
 * =====================================================================================
 */

#ifndef __REG_PDMA_H__
#define __REG_PDMA_H__

#include "reg_base.h"

#define DMAC_DSAR(n)	(DMAC_BASE + (0x00 + (n) * 0x20)) /* DMA source address */
#define DMAC_DTAR(n)	(DMAC_BASE + (0x04 + (n) * 0x20)) /* DMA target address */
#define DMAC_DTCR(n)	(DMAC_BASE + (0x08 + (n) * 0x20)) /* DMA transfer count */
#define DMAC_DRSR(n)	(DMAC_BASE + (0x0c + (n) * 0x20)) /* DMA request source */
#define DMAC_DCCSR(n)	(DMAC_BASE + (0x10 + (n) * 0x20)) /* DMA control/status */
#define DMAC_DCMD(n)	(DMAC_BASE + (0x14 + (n) * 0x20)) /* DMA command */
#define DMAC_DDA(n)	(DMAC_BASE + (0x18 + (n) * 0x20)) /* DMA descriptor address */
#define DMAC_DMACR	(DMAC_BASE + 0x1000)              /* DMA control register */
#define DMAC_DMAIPR	(DMAC_BASE + 0x1004)              /* DMA interrupt pending */
#define DMAC_DMADBR	(DMAC_BASE + 0x1008)              /* DMA doorbell */
#define DMAC_DMADBSR	(DMAC_BASE + 0x100C)              /* DMA doorbell set */


#endif /* __REG_PDMA_H__ */
